package com.newly.common.base.entity.sys.auth.role.bo;

import com.newly.common.base.constants.AuthConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @program: newly-parent
 * @remark: 角色类型
 * @author: guan
 * @create: 2022-01-11 23:05
 */
@Data
public class RoleTypeBo {
    /**
     * 角色类型编码
     */
    @ApiModelProperty("角色类型编码")
    private Integer code;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    public RoleTypeBo() {
    }

    public RoleTypeBo(AuthConstant.RoleType value) {
        this.code = value.getCode();
        this.remark = value.getRemark();
    }
}
